/*
 * Sylvain BERTRAND <digital.ragnarok@gmail.com>
 * code protected by GNU GPL v3
 */
#include <X11/Xlib.h>
#include <X11/extensions/sync.h>
#include <glib.h>
#include <libxml/xinclude.h>
#include "../../toolkit/keyboard.h"
#include "../../toolkit/xml.h"
#include "../../toolkit/prop.h"
#include "../misc.h"
#include "../geom.h"
#include "../frame.h"
#include "../actions.h"
#include "../moveresize.h"
static gboolean run_func(struct wm_actions_data *data, gpointer options)
{
	(void)options;
	if(data->client) {
		enum wm_moveresize_type type;
		type = data->button != 0 ? WM_MOVE : WM_MOVE_KEYBOARD;
		moveresize_start(data->client, data->x, data->y, data->button, type);
	}
	return FALSE;
}

void action_move_startup(void)
{
	actions_register("Move", NULL, NULL, run_func);
}
